package cn.edu.scujcc;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
	
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
	
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/album")
public class AlbumController {
	@Autowired
	private AlbumService service;
	@GetMapping
	public List<Album> getAllAlbum(){
		List<Album>result = null;
		result = service.getAllAlbum();
		return result;
	}
	@GetMapping("/album")
	public Album getAlbum(@PathVariable String Album) {
	Album result = null;
	result = service.getAlbum(Album);
	return result;
	}

}
